<?php
// +----------------------------------------------------------------------
// | Description: 页面配置文件接口
// +----------------------------------------------------------------------
// | Author: orchief
// +----------------------------------------------------------------------

namespace app\admin\controller;

use app\common\controller\Rest;
use app\common\controller\ApiCommon;

class JsonConfig extends ApiCommon
{
    public function _initialize()
    {
        parent::_initialize();
        $this -> abort(!$this -> isClient, 'Permission denied', 403);
    }
    /**
     * 配置文件接口
     *
     * @return void
     */
    public function index()
    {
        echo file_get_contents('../application/jsonConfig/'.$this -> param['configName'].'.json');
    }
}
